package com.hd.trans.network.bean

data class TranslateTextBean(
    var origText: String,
    var tranText: String,
    var origPinyin: String? = null,
    var tranPinyin: String? = null,
){
    fun getText(isResult: Boolean):String{
        return if (isResult) tranText else origText
    }

    fun getPinyin(isResult: Boolean):String?{
        return if (isResult) tranPinyin else origPinyin
    }
}